package cms.api;

import cms.model.ConsumeHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Roney on 2017/2/8.
 */
public interface ConsumeHistoryApi {
    public void saveConsumeHistory(ConsumeHistory consumeHistory);

    /**
     * 查询机构消费记录
     * @param orgId
     * @param pageable
     * @return
     */
    Page<ConsumeHistory> listConsumeHistoryByOrganizationId(String orgId, Pageable pageable);

    /**
     * 根据机构id获取消费金额
     * @param orgId
     * @return
     */
    BigDecimal getConsumeMoneyByOrganizationId(String orgId);

    /**
     * 根据机构id查询名称
     * @return
     */
    List listConsumer(String orgId);
}
